Packages

c

com.fsf.news.service

NewsService

class NewsService extends SessionService

Service for interacting with the news repository.

Annotations
@Singleton() @Slf4j()
Linear Supertypes
SessionService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NewsService
  2. SessionService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected
  3. Private

Instance Constructors

  1. new NewsService(apiClient: NewsApiClient, responseProcessor: NewsResponseProcessor, sentimentProcessor: NewsSentimentProcessor, repository: NewsRepository, actorSystem: ActorSystem[ProcessorRequestMessage], scheduler: Scheduler, timeout: Duration)
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addSearchResult(form: NewsForm, sessionId: Optional[String]): CompletionStage[SearchResult]

    Adds a new search result to the repository for a given session.

    Adds a new search result to the repository for a given session.

    form

    The form containing search criteria

    sessionId

    The session ID

    returns

    A CompletionStage of processed search result

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def getSearchResultWordStats(uuid: UUID, sessionId: Optional[String]): CompletionStage[List[WordFrequency]]

    Retrieves word statistics for a specific search result.

    Retrieves word statistics for a specific search result.

    uuid

    The Search result UUID

    sessionId

    The session ID

    returns

    A CompletionStage of word frequencies

  11. def getSearchResults(sessionId: Optional[String]): CompletionStage[List[SearchResult]]

    Retrieves search results for a given session.

    Retrieves search results for a given session.

    sessionId

    The session ID

    returns

    A CompletionStage of search results

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. def performSessionOperation[T](sessionId: Optional[String], operation: Function[String, CompletionStage[T]]): CompletionStage[T]

    Performs an operation that requires a valid session ID.

    Performs an operation that requires a valid session ID.

    sessionId

    The session ID

    operation

    The operation to perform

    returns

    Completion stage containing the result of the operation

    Attributes
    protected[service]
    Definition Classes
    SessionService
  18. def removeSearchResult(uuid: UUID, sessionId: Optional[String]): CompletionStage[Void]

    Removes a search result from the repository.

    Removes a search result from the repository.

    uuid

    The search result UUID

    sessionId

    The session ID

    returns

    A CompletionStage of the removal operation

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from SessionService

Inherited from AnyRef

Inherited from Any

Ungrouped